#12345####################################################################################

numbers
Numbers Mar10 

Numbers

+ [?numbersIntro Introduction to Numbers]
+ [?isNum Checking Whether a Variable Contains a Valid Number]
+ [?oddp Check if Number is Odd]
+ Comparing Floating-Point Numbers
+ Rounding Floating-Point Numbers
+ Operating on a Series of Integers
+ [?seed Controlling Random Number Generation]
+ [?rInt Generating Random Integers Within a Range]
+ [?rFloat Generating Random Floats Within a Range]
+ Generating Biased Random Numbers
+ [?factorial Computing Factorials]
+ [?abs Find Absolute Values]
+ Taking Logarithms
+ Calculating Exponents
+ Formatting Numbers
+ Printing Correct Plurals
+ Calculating Trigonometric Functions
+ Doing Trigonometry in Degrees, not Radians
+ Handling Very Large or Very Small Numbers
+ Converting Between Bases
+ Calculating Using Numbers in Bases Other Than Decimal

#12345 #############################

numbersIntro
Numbers Intro 

Introduction to Numbers

AWK has numbers as most of the procedural computer languages do.
However all numbers in awk are stored as double precission floating point
numbers; no _integer_, _long_ or _float_ number types exist.
All values, literals or variables, are of type string or double
precission floating point numbers. So if you write:

  x = 5
  y = 5 / 2

the value of `y` is 2.5, not 2 as, e.g. it would be in C. Also the value
of x, internally, is 5.0, because, as we said above, all numbers in awk
are stored in double precission floating point numbers.
